<script setup>
import { ref } from 'vue'
import Table from "../Table.vue";


const props = defineProps({
  list: {
    type: Array,
    default: [],
  }
})
const activeNames = ref([''])
</script>

<template>
    <el-collapse v-model="activeNames" >
      <el-collapse-item title="部署在指定节点" name="nodeSelector">
          <template #title>
              <el-button text type="primary">部署在指定节点</el-button>
          </template>
          <Table :list="props.list" key-name="节点标签的key" value-name="节点标签的value"></Table>
      </el-collapse-item>
    </el-collapse>
</template>

<style scoped>

</style>